<#--
	f:field
	m:message text
-->
<#macro info f=false m=false class="" func=Action.info typ="info">
<#if m?is_boolean && f?is_string><#assign t=func(f)/><#else><#assign t=m/></#if>
<#if t?is_string><#if t?trim != ''>
<span class="${typ} ${class}">${t?html}</span><#nested>
</#if><#else><#assign ms=func()/><#if ms?size gt 1>
<span class="${typ} ${class}">
<#list ms as s>${s?html}<br></#list>
</span><#nested>
</#if></#if></#macro>

<#--
	f:field
	m:message text
-->
<#macro warn f=false m=false class="">
<@info f=f m=m class=class func=Action.warn typ="warn"/>
</#macro>

<#--
	TODO
 -->
<#macro TODO>
<div style="width:100%;height:100%;background:red;font-size:30px;color:yellow">
哥们,记得还没实现哟~<#nested>
</div>
</#macro>

<#--
	a:action
-->
<#macro form action=false id=false target=false onsubmit=false upload=false class="">
<form <#if action?is_string>action="${URL(action)}"</#if> method="POST" class="form ${class}"
<#if id?is_string> id=${id} </#if><#if target?is_string> target="${target}" </#if>
<#if onsubmit?is_string> onsubmit="${onsubmit}" </#if>
<#if upload> enctype="multipart/form-data" </#if> >
<#nested>
</form>
</#macro>

<#--
	pane
-->
<#macro pane title url=false id="" class="">
<div id="${id}" class="pane ${class}">
<div class="title">
<#if url?is_boolean>
	<span >${title?html!"&nbsp;"}</span>
<#else>
	<a href="${url}" class="link">
	 ${title?html!"&nbsp;"}
	</a>
</#if>
</div>
<div class="content">
<#nested>
</div></div>
</#macro>

<#--
	panes
-->
<#macro panes id=false class="">
<#assign _IN_PANES_=true>
<div class="panes ${class}" id="${id}">
<#nested>
</div>
<#assign _IN_PANES_=false>
</#macro>


